package com.example.demo.service;

import com.example.demo.common.Result;
import com.example.demo.pojo.UserEntity;

/**
 * @author xukang
 * @date 2021-09-10 15:31
 */
public interface UserService {
    /**
     * 注册
     * @param username
     * @param account
     * @param realname
     * @param age
     * @return
     */
    Result register(String username,
                    String account,
                    String realname,
                    Integer age);

    Result updateById(Long id, UserEntity userEntity);

    Result getByContion(UserEntity userEntity);
}
